#coding:utf-8

'''
author:bamboohat
'''

import configparser

class ConfigUtil:

    def getBaseConfig(key):
        config = configparser.ConfigParser()
        config.read("../resources/config.ini")
        return config["base"][key]

    def getMySqlConfig(key):
        config = configparser.ConfigParser()
        config.read("../resources/config.ini")
        return config["mysql"][key]

    if __name__ == '__main__':
        getBaseConfig("base.path")
        getMySqlConfig("jdbc.ip")